<?php

// no direct access
defined('_JEXEC') or die('Restricted access');

class TableStaff extends JTable
{
	var $id = null;
	var $name = null;
	var $alias = null;
	var $published = null;
	var $age = null;
	var $phone = null;
	var $address = null;
	var $img = null;
	var $email = null;
	var $position = null;
	var $field = null;
	var $rank = null;
	var $archive = null;
	var $projects = null;
	var $education = null;
	var $technical = null;
	var $department_id = null;
	var $date_validate = null;
        var $gender = null;
        var $yearGS = null; //Nam phong Giao su
        var $yearPGS = null; //Nam phong Pho Giao su

	function __construct(& $db) {
		parent::__construct('#__ciid_staff', 'id', $db);
	}

	function bind($array, $ignore = '')
	{
		if (key_exists( 'params', $array ) && is_array( $array['params'] ))
		{
			$registry = new JRegistry();
			$registry->loadArray($array['params']);
			$array['params'] = $registry->toString();
		}

		return parent::bind($array, $ignore);
	}

	function check()
	{
		return true;
	}
}
